package cn.hzc.fortess.system.service;

import cn.hzc.fortess.system.page.Pagination;
import cn.hzc.fortess.system.search.ApiTokenSearch;

import javax.servlet.http.HttpServletRequest;

public interface JwtTokenService {

    void generate(HttpServletRequest request, Integer userId);

    String generateJwtToken(Integer userId);

    String getJwtToken(HttpServletRequest request,Integer userId);

    boolean isTokenExpired(String token);

    void removeJwtToken(Integer userId);

    int cleanExpired();

    Pagination page(ApiTokenSearch search);

    int delete(Integer id);
//
}
